$("#form").handleForm({
        rules: {
            'shopnum': {
                required: true,
            },
            'shopname': {
                required: true,
            },
            'tel': {
                required: true,
            },
            'address': {
                required: true,
            }
        },
        messages: {
            'shopnum': {
                required: '请填写商铺编号',
            },
            'shopname': {
                required: '请填写商铺名',
            },
            'tel': {
                required: '请填写联系电话',
            },
            'address': {
                required: '请填写详细地址',
            },
        },
        closest: 'div.form-group',
    },
    function(data) {
        bootbox.alert(data.msg,function(){
            if (data.code == 1) {
               window.location.href = index;
            }
        });
    }
);

var ue = UE.getEditor('content');
